home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 8
/
Eagles_Nest_Mac_Collection_Disc_8.TOAST
/
Developer Tools⁄Additions
/
InsideBa1994
/
InsideBasic-94
/
IB 94
/
Simple DB
/
Simple DB.MAIN
< prev
next >
Wrap
Text File
|
1993-10-23
|
5KB
|
134 lines
'===============================================================================
'= Copyright 1992 Staz™ Software, Inc. =
'= All rights reserved =
'= "Project.MAIN" from PG:PRO =
'===============================================================================
RESOURCES "Simple DB.RSRC","APPLHOME"
COMPILE 1,_MacsbugLabels_strResource_caseInsensitive'set by PG:PRO
WINDOW OFF : WIDTH -2 'standard
'
'{PG3} <-- PG PRO uses these as a source code markers. Do not remove them.
GLOBALS "PG PRO.GLBL"
GLOBALS "Simple DB.GLBL"
END GLOBALS
EDIT = 2'set EDIT/PICTURE FIELD border
INCLUDE "PG PRO.INCL"
SEGMENT
INCLUDE "Simple DB.INCL"
SEGMENT 20480'segment break if > 20K
INCLUDE "Edit Menu.FLTR"
INCLUDE "Return.FLTR"
INCLUDE "Key.FLTR"
'{PG4}
'===============================================================================
"@Filters":SEGMENT: REM Use the area below for additional filters
'-------------------------------------------------------------------------------
INCLUDE "wData.FLTR"
INCLUDE "wList.FLTR"
'===============================================================================
SELECT gAction 'primary branch
'---------------------------------------------------------------------------
CASE _mainAction :GOSUB "Action:Main" 'appl level events
CASE _menuAction :GOSUB "Action:Menu" 'menu actions
CASE _buttonAction :GOSUB "Action:Button" 'button clicked
CASE _mouseAction :GOSUB "Action:Mouse" 'mouse down in whichClass
CASE _windowAction :GOSUB "Action:Window" 'window actions
CASE _fieldAction :GOSUB "Action:Field" 'edit fields actions
CASE _otherAction :GOSUB "Action:Other" 'low level events
END SELECT:RETURN 'end of primary selection
'===============================================================================
"@Includes":SEGMENT: REM Use the area below for additional ".INCL" files
'-------------------------------------------------------------------------------
'===============================================================================
"@Long Functions":SEGMENT: REM Put your application's long functions below
'-------------------------------------------------------------------------------
'===============================================================================
"Action:Main"
'-------------------------------------------------------------------------------
SELECT gSubAction
CASE _mainStart
'
CASE _mainOpen
CASE _mainSave
CASE _mainPrint
CASE _mainTimer
CASE _mainShutDown
END SELECT:RETURN
'===============================================================================
"Action:Menu"
'-------------------------------------------------------------------------------
SELECT gWhichMenu
CASE _appleResMenu
END SELECT:RETURN
'===============================================================================
"Action:Button"
'-------------------------------------------------------------------------------
SELECT gWhichClass
END SELECT:RETURN
'===============================================================================
"Action:Mouse"
'-------------------------------------------------------------------------------
SELECT gWhichClass
END SELECT:RETURN
'===============================================================================
"Action:Window"
'-------------------------------------------------------------------------------
SELECT gSubAction
CASE _windowClose
CASE _windowUpdate
CASE _windowActivate
CASE _windowDeactivate
CASE _windowSized
CASE _windowMoved
CASE _windowClicked
CASE _windowWillZoomOut
CASE _windowWillZoomIn
CASE _windowWillGrow
CASE _windowDocWillMove
END SELECT:RETURN
'===============================================================================
"Action:Field"
'-------------------------------------------------------------------------------
SELECT gSubAction
CASE _fieldActivate
CASE _fieldChanging
CASE _fieldKeyPressed
CASE _fieldReturn
CASE _fieldTab
CASE _fieldShiftTab
CASE _fieldClear
CASE _fieldLeft
CASE _fieldRight
CASE _fieldUp
CASE _fieldDown
CASE _fieldClicked
END SELECT:RETURN
'===============================================================================
"Action:Other"
'-------------------------------------------------------------------------------
SELECT gSubAction
CASE _otherDisk:gAction=0 : REM Prevents SFOpen dialog on disk insert
CASE _otherSwitch
CASE _otherScrap
CASE _otherCursor
CASE _otherKeyPressed
CASE _otherBeforeMenu
CASE _otherNullEvent
CASE _otherFilterEvent
CASE _otherUser
CASE _otherUserInit
CASE _otherUserUpdate
CASE _otherUserClick
CASE _otherUserDispose
END SELECT:RETURN
'===============================================================================
"@Subroutines":SEGMENT: REM Put your application's subroutines below
'-------------------------------------------------------------------------------
'===============================================================================